package com.ruoyi.sea.service.impl;

import com.ruoyi.sea.domain.AlarmStatistics;
import com.ruoyi.sea.domain.AlarmTrendVO;
import com.ruoyi.sea.mapper.AlarmStatisticsMapper;
import com.ruoyi.sea.service.IAlarmStatisticsService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class IAlarmStatisticsServiceImpl implements IAlarmStatisticsService {

    @Autowired
    private AlarmStatisticsMapper alarmStatisticsMapper;

    @Override
    public AlarmStatistics selectAlarmStatistics(String code) {
        return alarmStatisticsMapper.selectAlarmStatistics(code);
    }

    @Override
    public List<AlarmTrendVO> selectAlarmTrend(String code) {
        return alarmStatisticsMapper.selectAlarmTrend(code);
    }
}
